package com.xm.limiter;

/**
 * 尝试获取策略模式
 */
public class TryAcquireStrategy {
    private final Limiter limiter;

    public TryAcquireStrategy(Limiter limiter) {
        this.limiter = limiter;
    }

    public boolean tryAcquire() {
        return limiter.tryAcquire();
    }

}
